/***************************************************
> Copyright (C) 2024 ==KINGYI== All rights reserved.
> File Name: 8.3.1.c
> Author:
> Mail: 
> Created Time: Fri 02 Aug 2024 09:56:18 PM PDT
***************************************************/

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int main(int argc,const char* argv[])
{
	pid_t pid = 0;
   pid = fork();
   if(pid == 0)
   {
     printf("child is boy\n");
	 exit(0);
   }else if(pid < 0)
   {
   printf("创建失败");
   }
    pid = fork();
	if(pid == 0 )
	{
	 printf("child is girl\n");
	 exit(0);
	}else if(pid < 0)
	{
	printf("创建失败");
	}
	else 
   	{
	printf("father process\n");
	}

    return 0;
}
